package com.sudo.service.admin.service;

import com.sudo.common.utils.PagedGridResult;
import com.sudo.dao.admin.entity.SysDict;
import com.sudo.dao.admin.model.bo.*;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 为道日损 2020-06-23 16:48
 * webSite：https://www.sudo.ren
 */
public interface SysDictService {

    int addDict(SysDictAddBO sysDictAddBO);

    int addDictSub(SysDictSubAddBO sysDictSubAddBO);

    SysDict getSysDictByCode(String dictCode);

    PagedGridResult getParentDictByPage(SysDictQueryBO sysDictQueryBO);

    PagedGridResult getChildDictByPCode(SysSubDictQueryBO sysSubDictQueryBO);

    int updateDictByDictCode(SysDictUpdateBO sysDictUpdateBO);

    int deleteDictByCode(String dictCode);
}
